<?php

namespace Database\Factories;

use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

class CommentFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            //
            'content' => $this->faker->sentence(),
            'user_id' => User::inRandomOrder()->first()->id,
            'commentable_type' => 'App\Models\Topic',
            'commentable_id' => 1,
        ];
    }
}
